import Axios from "axios";

//Axios.defaults.baseURL = "http://localhost:9091/api";
Axios.defaults.baseURL = "http://39.104.51.98:3308";
Axios.defaults.timeout = 5000;
Axios.defaults.headers = {
    "Authorization": "Bearer GROUND-TERMINAL"
};

Axios.interceptors.response.use((response) => {
    return response;
}, (error) => {
    alert("系统或网络异常，请联系系统管理员。[" + error + "]");
    return Promise.reject(error);
});

export default Axios;
